import request from '@/utils/request'

// 查询异常情况列表
export function listAbnormalEvents(query) {
  return request({
    url: '/user/abnormalEvents/list',
    method: 'get',
    params: query
  })
}

// 查询异常情况详细
export function getAbnormalEvents(id) {
  return request({
    url: '/user/abnormalEvents/' + id,
    method: 'get'
  })
}

// 新增异常情况
export function addAbnormalEvents(data) {
  return request({
    url: '/user/abnormalEvents',
    method: 'post',
    data: data
  })
}

// 修改异常情况
export function updateAbnormalEvents(data) {
  return request({
    url: '/user/abnormalEvents',
    method: 'put',
    data: data
  })
}

// 删除异常情况
export function delAbnormalEvents(id) {
  return request({
    url: '/user/abnormalEvents/' + id,
    method: 'delete'
  })
}
